package user;

import Operation.*;

import java.util.Scanner;

public class AdminUser extends User{

    public AdminUser(String name) {
        super(name);
        this.ioPerations = new IOPeration[]{
                new ExitOperation(),
                new AddOperation(),
                new FindOperation(),
                new DelOperation(),
                new DIsplayOperation()
        };
    }

    public int menu(){
        System.out.println(name+"欢迎你，管理员");
        System.out.println("扣1新增图书");
        System.out.println("扣2查找图书");
        System.out.println("扣3删除图书");
        System.out.println("扣4显示图书");
        System.out.println("扣0退出系统");
        Scanner sc = new Scanner(System.in);
        int choice = sc.nextInt();
        return choice;
    }
}
